import java.util.Random;

public class Driver extends Employee implements Drive{

    double basicWage;

    public Driver(int id, String name, double wage) {
        super(id, name, wage);
        this.basicWage = new Random().nextInt(1000);
    }

    public Driver(double basicWage) {
        this.basicWage = basicWage;
    }

    @Override
    public  double work() {

        System.out.println("司机work执行成功 收入为："+(wage+basicWage));
        return wage+basicWage;
    }

    @Override
    public void drive2() {
        System.out.println("司机开车");
    }
}
